package com.dayaokeji.rhythmschoolstudent.client.home.data;

import com.dayaokeji.rhythmschoolstudent.R;
import com.dayaokeji.rhythmschoolstudent.client.home.data.bean.ComponentBean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Gorden on 2017/9/26.
 * 办公模块数据
 */

public class HomeComponentData {

    private static List<ComponentBean> data;

    public static List<ComponentBean> getData() {
        if (data == null) {
            data = new ArrayList<>();
            data.add(new ComponentBean(R.mipmap.ic_home_course,R.string.home_course));
            data.add(new ComponentBean(R.mipmap.ic_home_meeting,R.string.home_meeting));
            data.add(new ComponentBean(R.mipmap.ic_home_school_life,R.string.home_school_life));
            data.add(new ComponentBean(R.mipmap.ic_home_school_league,R.string.home_school_league));
            data.add(new ComponentBean(R.mipmap.ic_home_school_office,R.string.home_school_office));
            data.add(new ComponentBean(R.mipmap.ic_home_lost_found,R.string.home_lost_found));
            data.add(new ComponentBean(R.mipmap.ic_home_school_square,R.string.home_school_square));
            data.add(new ComponentBean());
        }
        return data;
    }

}
